libxl: fix libxl_set_memory_target
authorWei Liu <wei.liu2@citrix.com>
Thu, 29 Dec 2016 16:36:31 +0000 (16:36 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 20 Jan 2017 17:37:46 +0000 (17:37 +0000)
commite1cefedd80f9972854769bfc6e32e23b56cd0712
tree61b503870fa727994878bbf49faadc40a9503548
parent53c3a7372487e72b98d86a7368616d789d80f12e
libxl: fix libxl_set_memory_target

Commit 26dbc93a ("libxl: Remove pointless hypercall from
libxl_set_memory_target") removed the call to xc_domain_getinfolist, but
it failed to notice that "info" was actually needed later.

Put that back. While at it, make the code conform to coding style
requirement.

Reported-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
(cherry picked from commit ed5f19aea66fe5a72060d6a795ffcd23b7643ee3)
tools/libxl/libxl.c